package com.zz.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zz.entity.Admins;
import com.zz.service.AdminService;

@Controller
public class AdminController {
		@Autowired
		private AdminService service;
		@RequestMapping("/addUser")
		public String addUser(Admins admins){
				int num=service.addUser(admins);
				return "redirect:addUser";
		}
}
